#@adminLayout()
#define main()
<div class="jbolt_page" data-key="/demo/imguploader" >
    <div class="jbolt_page_title">
        <h1>提交信息页面</h1>
    </div>
    <div class="jbolt_page_content">
        <div class="row">
            <div class="col-12">

                <form class="form"  id="turn_down_reason_form" action="/auth/mall/spreader/delete_audit_time/#(spreader.member_id)"  data-pjaxsubmit  method="get">
                    <input type="hidden"   name="">

                    <div class="form-group row" >
                        <label class="col-4 col-form-label">分销商姓名:</label>
                        <div class="col-8">
                            <input class="form-control" type="text" data-rule="required"   readonly="readonly" name="retailer_name" value="#(spreader.name??)">
                        </div>
                    </div>

                    #if(spreader.audited==0)
                    <div class="form-group row" >
                        <label class="col-4 col-form-label">申请原因:</label>
                        <div class="col-8">
                            <textarea class="form-control" style="height: 100px" type="text" data-rule="required"   readonly="readonly" name="retailer_name" value="#(spreader.why_apply??)"></textarea>
                        </div>
                    </div>
                    #end

                    <div class="form-group row" >
                        <label class="col-4 col-form-label">申请时间:</label>
                        <div class="col-8">
                            <input  class="form-control"  style="height: 30px" type="text" data-rule="required"   readonly="readonly" name="spreader.apply_time" value="#(MyUtil.get_date(spreader.apply_time??))">
                        </div>
                    </div>


                    <div class="form-group row" >
                        <label class="col-4 col-form-label">拒绝原因:</label>
                        <div class="col-8">
                            <textarea class="form-control" type="text" data-rule="required"   name="reason" ></textarea>
                        </div>
                    </div>




                    <div class=" form-group text-center "  >

                        <button type="button"  onclick="RefreshsubmitForm(turn_down_reason_form)" class="btn btn-success" ><i class="fa fa-check mr-2"></i>提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
#end

#define js()
<script>
    function RefreshsubmitForm(formEId){
        var form=getRealJqueryObject(formEId);
        if(FormChecker.check(form)){

            var url=form.action;
            form.ajaxSubmit({
                type:"post",
                url:url,
                success:function(ret) {
                    if (ret.state == "ok") {
                        LayerMsgBox.success(ret.msg, 500,function () {
                            refreshPjaxContainer();
                        });

                    } else {
                        LayerMsgBox.alert(ret.msg, 2);
                    }
                }
            });
        }
        return false;
    }
</script>
#end